<?php
namespace Superadmins\Model;
use Think\Model\ViewModel;
class SchoolViewModel extends ViewModel
{
	public $viewFields = array(    
	 'School'=>array('*'),
	 'SchoolRelation'=>array('*','_on'=>'School.school_id=SchoolRelation.school_id'), 
	 'SchoolType'=>array('_on'=>'SchoolRelation.school_type_id=SchoolType.school_type_id','school_type_name','school_type_sort'),
	);
}